<?php

namespace app\modules\admin\models;

use Yii;

/**
 * This is the model class for table "cw_panel".
 *
 * @property integer $pan_id
 * @property string $pan_title
 * @property string $pan_pic_url
 * @property string $pan_explain
 * @property string $pan_link
 * @property string $pan_time
 */
class CwPanel extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'cw_panel';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['pan_title', 'pan_pic_url', 'pan_explain', 'pan_link', 'pan_time'], 'required'],
            [['pan_title', 'pan_pic_url', 'pan_explain', 'pan_link', 'pan_time'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'pan_id' => 'Pan ID',
            'pan_title' => '小面板标题',
            'pan_pic_url' => '小面板图片',
            'pan_explain' => '小面板说明',
            'pan_link' => '超链接',
            'pan_time' => '编辑时间',
        ];
    }
}
